package graphic.dialogs;

import graphic.mycomponents.UserListPanel;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JPanel;
import javax.swing.JScrollPane;

public class UserListDialog extends AbstractDialog
{
	JScrollPane scrollPane;
	
	public UserListDialog()
	{	
		super("Show User List", "Create", 450, 200);
	}
	
	public void createPanel()
	{
		super.setPanel(new JPanel(new GridBagLayout()));
		
		GridBagConstraints c = new GridBagConstraints();
		c.insets = new Insets(5, 10, 5, 10);
		c.fill = GridBagConstraints.BOTH;
		c.anchor = GridBagConstraints.CENTER;
		
		JPanel panel = super.getPanel(); 
		
		c.gridy = 0;
		panel.add(new UserListPanel(), c);
		
		c.gridy = 1;
		panel.add(super.getExitButton(), c);
	}
	
	@Override
	public boolean checkOkFunction(){ return true; }

	@Override
	public void okFunction(){}
}